package com.eight.cloud.client.model.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * 订单vo
 *
 * @ClassName: OrderVo
 * @Author: TXC
 * @Date: 2024-12-10 20:23
 **/
@Data
public class OrderVo implements Serializable {
    /** amount */
    private TransactionAmount amount;

    /** subAppid */
    private String subAppid;
    /** subMchid */
    private String subMchid;

    /** attach */
    private String attach;

    /** bankType */
    private String bankType;

    /** outTradeNo */
    private String outTradeNo;

    /** payer */
    private String subOpenid;

    /** successTime */
    private String successTime;

    /** tradeState */
    public enum TradeStateEnum {
        SUCCESS,
        REFUND,
        NOTPAY,
        CLOSED,
        REVOKED,
        USERPAYING,
        PAYERROR,
        ACCEPT
    }

    private TradeStateEnum tradeState;

    /** tradeStateDesc */
    private String tradeStateDesc;

    /** tradeType */
    public enum TradeTypeEnum {
        JSAPI,
        NATIVE,
        APP,
        MICROPAY,
        MWEB,
        FACEPAY
    }
    private TradeTypeEnum tradeType;

    /** transactionId */
    private String transactionId;
}
